package com.CampusLife.service;

import com.CampusLife.bean.Favorite;
import com.CampusLife.dto.Page;

import java.util.List;

public interface IFavoriteService {
    List<Favorite> queryAll();

    List<Favorite> queryById(Integer id);

    void add(Favorite favorite);

    void update(Favorite favorite);

    void delete(Integer fid);

    List<Favorite> getFavoriteAll(Integer p_id);

    Integer queryByPid(Favorite favorite);

    int queryCount(int id);
}
